<template>
    <div class="right">
        <p>我是右{{b}}</p>
    </div>
</template>

<script>
import bus from '@/components/EventBus'
export default {
data(){
    return{
        b:0
    }
},
created(){
    bus.$on('receive',(val)=>{
        this.b=val
    })
}
}
</script>

<style>

</style>